﻿// -----------------------------------------------------------------------
// <copyright file="Project.cs" company="Spardo, LLC">
// Copyright (c) 2011 SPardo, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a 
// copy of this software and associated documentation files (the "Software"), 
// to deal in the Software without restriction, including without limitation 
// the rights to use, copy, modify, merge, publish, distribute, sublicense, 
// and/or sell copies of the Software, and to permit persons to whom the 
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included 
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
// DEALINGS IN THE SOFTWARE.
// </copyright>
// -----------------------------------------------------------------------

namespace DotNet37Signals.Client.Basecamp.Models
{
    using System;
    using System.Runtime.Serialization;

    [DataContract(Name = "project", Namespace = "")]
    public class Project
    {
        [DataMember(Name = "announcement", Order = 0)]
        public string Announcement { get; set; }

        [DataMember(Name = "created-on", Order = 1)]
        public DateTime CreatedOn { get; set; }

        [DataMember(Name = "id", Order = 2)]
        public Int64 Id { get; set; }

        [DataMember(Name = "last-changed-on", Order = 3)]
        public DateTime LastChangedOn { get; set; }

        [DataMember(Name = "name", Order = 4)]
        public string Name { get; set; }

        [DataMember(Name = "show-announcement", Order = 5)]
        public bool ShowAnnouncement { get; set; }

        [DataMember(Name = "show-writeboards", Order = 6)]
        public bool ShowWriteboards { get; set; }

        [DataMember(Name = "start-page", Order = 7)]
        public StartPage StartPage { get; set; }

        [DataMember(Name = "status", Order = 8)]
        public ProjectStatus Status { get; set; }

        [DataMember(Name = "company", Order = 9)]
        public Company Company { get; set; }
    }
}
